﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LanDBom.Models.Procure
{
    public class Modlfy_Inf_huiP
    {
        LDbaseEntities LD = new LDbaseEntities();
        public Informa GetInf(int Inf_id)
        {
            Informa inf = LD.Informa.SingleOrDefault(x => x.Inf_id == Inf_id);

            return inf;
        }

        public int ChangeInf_huip(Informa Inf)
        {
            Informa inf = GetInf(Inf.Inf_id);

            inf.Inf_id = Inf.Inf_id;
            inf.Inf_zhuang = Inf.Inf_zhuang;
            inf.Inf_huiP = Inf.Inf_huiP;
            inf.Inf_ewfy = Inf.Inf_ewfy;
            inf.Inf_sczq = Inf.Inf_sczq;
            inf.Inf_ybfy = Inf.Inf_ybfy;
            inf.Inf_htime = Inf.Inf_htime;
            return LD.SaveChanges();
        }
    }
}